Release 10.1A: OpenEdge Development:
Messaging and ESB


Subscribing to a topic

Applications subscribe to topics of interest. To subscribe to a topic, the application subscribes to a topic and prepares to receive messages from the topic, as shown in the following example:

Subscribing to a topic 
/* Subscribes to newtopic */ 
RUN SUBSCRIBE IN pubsubsession ("newTopic", ?, ?, NO, consumerH).  
/* Start receiving requests */ 
RUN startReceiveMessages IN pubsubsession. 
/* Wait to receive the messages. */ 
WAIT-FOR u1 OF THIS-PROCEDURE. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095